<!doctype html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>我们的团队</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="css/upWindow.css" />
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/child.css">
    <link rel="stylesheet" href="css/style.css" />
	<script src="bootstrap/js/jquery1.11.3.js"></script>
    <script type="text/javascript" src="js/register.js"></script>
    <script type="text/javascript" src="js/topPublic.js"></script>
</head>
<body>
<div>
	<script type="text/javascript" src="js/header.js" ></script>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <img  src="img/tuandui_bg.png"  style="width: 100%;margin-bottom: 30px;min-width:1178px;"/>
            </div>
        </div>

        <div class="row-fluid">
            <div class="head-main">
                <div class="row-fluid">
                    <div class="fl" style="width: 285px;">
                        <div class="accordion" id="accordion-190303">
                            <div class="accordion-group">
                                <div class="accordion-heading">
                                    <div class="accordion-toggle child-1" style=" padding-bottom: 20px;padding-top: 20px;margin-bottom: 10px;" data-toggle="collapse" data-parent="#accordion-190303" href="#accordion-element-71038">我们的团队<span style="font-size: 14px;">/ Our Team</span></div>
                                </div>
                                <div id="accordion-element-71038" class="accordion-body in collapse">
                                    <div class="accordion-inner child-package " onclick="location.href='ourTeam.html'">关于圣嘉尔<span class="child-package-r">></span>
                                    </div>
                                    <div class="accordion-inner child-package" onclick="location.href='ourTeam_activityList.html'">宣传活动<span class="child-package-r">></span>
                                    </div>
                                    <div class="accordion-inner child-package child-flow" onclick="location.href='ourTeam_jion.html'">全国加盟<span class="child-package-r">></span>
                                    </div>
                                </div>
                            </div>

                            <div class="accordion-group">
                                <div class="accordion-heading">
                                    <div class="accordion-toggle collapsed child-2" style=" padding-bottom: 20px;padding-top: 20px;margin-bottom: 10px;" data-toggle="collapse" data-parent="#accordion-190303" onclick="window.open('http://tb.53kf.com/code/client/10130038/1][img]http://tb.53kf.com/kfimg.php?arg=10130038&style=1[/img]','_blank','height=500,width=750,top=220,left=500')">在线咨询</div>
                                </div>
                            </div>

                            <div class="accordion-group">
                                <div class="accordion-heading">
                                    <div class="accordion-toggle collapsed child-3" style=" padding-bottom: 20px;padding-top: 20px;margin-bottom: 10px;" data-toggle="collapse" data-parent="#accordion-190303" onclick="window.location.href='child.html'">套餐参考</div>
                                </div>
                               
                            </div>
                        </div>

                        <div>
                            <div class="child-contact">联系我们 <span style="font-size: 14px;color: #ccc;">/Contact Us</span></div>
                            <p class="top-line" ></p>
                            <div><img src="img/2016-06-07_140314.png" style="width:285px;height:120px;margin-bottom:20px;"></div>
                            <div class="child-name">南京圣嘉尔</div>
                            <div class="child-add">地址：南京市秦淮区汉中路</div>
                            <div class="child-add">89号金鹰国际商城24层C3</div>
                            <div class="child-add">电话：400-163-0766</div>
                            <div class="child-add">手机：18625170088</div>
                            <div class="child-add">QQ：2199207469</div>
                        </div>
                    </div>


                    <div class="fl mids mainwidth">
                        <div style="float: left;">
	                        <div class="flow-title">全国加盟</div>
	                        <span class="fl" style="border: 3px solid #eb6100;width:120px;"></span>
	                        <span class="fr" style="border-bottom:2px solid #EBEBEB;width:734px;height:2px;"></span>
                      	</div>
                      	<div class="join-apply">
                      		<p class="flow-flow">加盟申请</p>
                      		<ul class="apply-ul">
                      			<li>
                      				<span class="red-mark">*</span>
                      				<span class="apply-info">姓名：</span>
                      				<input class="apply-input" type="text" id="name"/>
                      			</li>
                      			<li>
                      				<span class="red-mark">*</span>
                      				<span class="apply-info">手机：</span>
                      				<input class="apply-input" type="text" id="phone"/>
                      			</li>
                      			<li>
                      				<span class="red-mark">*</span>
                      				<span class="apply-info">邮箱：</span>
                      				<input class="apply-input" type="text" id="email"/>
                      			</li>
                      			<li>
                      				<span class="red-mark">*</span>
                      				<span class="apply-info">微信：</span>
                      				<input class="apply-input" type="text" id="weixin"/>
                      			</li>
                      			<li>
                      				<span class="red-mark">*</span>
                      				<span class="apply-info">公司名称：</span>
                      				<input class="apply-input" type="text" id="companyName"/>
                      			</li>
                      			<li>
                      				<span class="red-mark">*</span>
                      				<span class="apply-info">合作模式：</span>
                      				<p class="apply-radio">
                      					<span><input type="radio" name="r1" value="1" />加盟商：连锁模式，接受总部统一的品牌、市场和培训管理，在划定保护区域内有专做总部业务的实体</span>
	                      				<span><input type="radio" name="r1" value="2" />渠道商：合作模式，接受我方统一的品牌、市场和培训管理，在自己的实体内兼做我方业务</span>
	                      				<span><input type="radio" name="r1" value="3" />代理商：代理模式，接受总部统一的品牌、市场和培训管理，个体代理总部业务</span>
                      				</p>
                      			</li>
                      			<li>
                      				<span class="red-mark">*</span>
                      				<span class="apply-info">详细地址：</span>
                      				<textarea id="address"></textarea>
                      			</li>
                      			<li>
                      				<span class="apply-btn" onclick="doSubmit()">提交</span>
                      			</li>
                      		</ul>
                      	</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" value="ourTeam" id="navid" />
<script type="text/javascript" src="js/footer.js" ></script>
<script src="js/banner.js"></script>
<script>
	function doSubmit(){
		var name = $("#name").val();
		var phone = $("#phone").val();
		var email = $("#email").val();
		var weixin = $("#weixin").val();
		var type=$('input:radio[name="r1"]:checked').val();
		var companyName = $("#companyName").val();
		var address = $("#address").val();
		
	    if(name==''){
	    	alert("请填写姓名");
	      	return 
	    }
		if(phone==''){
			alert("请填写手机号");
			return
		}
		if(email==''){
			alert("请填写邮箱");
			return
		}
		if(weixin==''){
			alert("请填写微信号");
			return
		}
		if(companyName==''){
			alert("请填写公司名称");
			return
		}
		if(type==undefined){
			alert("请选择合作模式");
			return
		}
		if(address==''){
			alert("请填写详细地址");
			return
		}
		$.ajax({  
		    url:'/baby/babyJoin/addJoin',// 跳转到 action  
		    data:{
		    	 name:name,
				 phone:phone,
				 email:email,
				 weixin:weixin,
				 companyName:companyName,
				 type:type,
				 address:address
		    },  
		    type:'post',  
		    cache:false,  
		    dataType:'json',  
		    success:function(data){ 
		        if(data.code =="2000" ){ 
		            console.log(data);  
		            alert("申请成功");
//		            window.location.reload();
		        }else{  
		            console.log(data);  
		        }  
		    }, error : function() {      
		        //alert("异常！");  

		    }  
		});
	}
	
</script>
</body>
</html>